import { ref } from 'vue'

export const useBanner = () => {
  // 轮播图数据
  const bannerList = ref([
    { id: 1, imgUrl: new URL('@/assets/banner-images/12.jpg', import.meta.url).href },
    { id: 2, imgUrl: new URL('@/assets/banner-images/14.jpg', import.meta.url).href },
    { id: 3, imgUrl: new URL('@/assets/banner-images/16.jpg', import.meta.url).href },
    { id: 4, imgUrl: new URL('@/assets/banner-images/18.jpg', import.meta.url).href },
    { id: 5, imgUrl: new URL('@/assets/banner-images/20.jpg', import.meta.url).href },
    { id: 6, imgUrl: new URL('@/assets/banner-images/22.jpg', import.meta.url).href },
  ])

  return {
    bannerList
  }
}
